<div class="ui-g">
    <div class="ui-g-3">
        <div class="notice-detail-header">
            <div style="padding:15px 10px 0 0">
                <button pButton type="button" icon="fa fa-book" label="存草稿"></button>
                <button pButton type="button" icon="fa fa-paper-plane" label="发  送"></button>
            </div>
        </div>
        <div class="notice-detail-content">
            <div class="ui-g-12">
                <div class="ui-g-4">标题
                    <span style="color:red;">*</span>
                </div>
                <div class="ui-g-8">
                    <textarea rows="3" [(ngModel)]="noticeTitle" pInputTextarea [style]="{'width':'100%'}"></textarea>
                </div>
                <div class="ui-g-4">紧急程度
                    <span style="color:red;">*</span>
                </div>
                <div class="ui-g-8">
                    <p-rating stars="10" [cancel]="false"></p-rating>
                </div>
                <div class="ui-g-4">收件人
                    <span style="color:red;">*</span>
                </div>
                <div class="ui-g-8" style="text-align:right;">
                    <button type="button" pButton icon="fa fa-plus" (click)="showSelectPart($event)"></button>
                </div>
                <div class="ui-g-12">
                    <p-table [value]="receivers" [scrollable]="true" scrollHeight="120px">
                        <ng-template pTemplate="body" pTemplate="body" let-rowData>
                            <tr>
                                <td style="width:30px;text-align:center">
                                    <span class="fa {{rowData.icon}}"></span>
                                </td>
                                <td>{{rowData.label}}</td>
                                <td style="width:50px;text-align:center">
                                    <button type="button" pButton icon="fa fa-close" (click)="removePart(rowData)"></button>
                                </td>
                            </tr>
                        </ng-template>
                    </p-table>
                </div>
                <div class="ui-g-4">附件</div>
                <div class="ui-g-8" style="text-align:right;">
                    <p-fileUpload mode="basic" name="demo[]" url="./upload.php" chooseLabel="选择" maxFileSize="1000000" (onUpload)="onBasicUploadAuto($event)"
                        auto="true"></p-fileUpload>
                </div>
                <div class="ui-g-12">
                    <p-table [value]="attachments" [scrollable]="true" scrollHeight="100px">
                        <ng-template pTemplate="body" pTemplate="body" let-rowData>
                            <tr>
                                <td style="width:30px;text-align:center">
                                    <span class="fa fa-file-word-o"></span>
                                </td>
                                <td>{{rowData.name}}</td>
                                <td style="width:50px;text-align:center">
                                    <button type="button" pButton icon="fa fa-close" (click)="removeAttachment(rowData)"></button>
                                </td>
                            </tr>
                        </ng-template>
                    </p-table>
                </div>
            </div>
        </div>
    </div>
    <div class="ui-g-9 notice-content">
        <p-editor [(ngModel)]="text"></p-editor>
    </div>
</div>